package com.twxm.breed.service;


import com.twxm.breed.entity.CategoryInfo;
import com.twxm.breed.mapper.CategoryInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoryInfoService {
    @Autowired
    CategoryInfoMapper categoryInfoMapper;

    public Integer getId(CategoryInfo categoryInfo){
        return categoryInfoMapper.getId(categoryInfo);
    }

    public CategoryInfo getCateById(String cateId) {
        return categoryInfoMapper.getCateById(cateId);
    }
}
